package com.colorfruit.admin.business.service;

import com.colorfruit.framework.model.pojo.BaseResult;

public interface PurchaseService {
    /**
     * 统计采购信息
     * @return
     */
    BaseResult countPurchaseOrder();

    BaseResult countPurchasePrice();

    /**
     * 添加采购明细
     * @param userId
     * @param purchaseTotalInfoId
     * @param supplierName
     * @param purchasePrice
     * @param purchaseNumber
     * @return
     */
    BaseResult addPurchaseDetail(String userId,
                                 Long purchaseTotalInfoId,
                                 String supplierName,
                                 String purchasePrice,
                                 Integer purchaseNumber);

    /**
     * 查询采购统计列表
     * @param page
     * @param size
     * @return
     */
    BaseResult selectPurchaseCountList( int page, int size);

    /**
     * 查询采购明细列表
     * @param purchaseTotalInfoId
     * @param page
     * @param size
     * @return
     */
    BaseResult selectPurchaseDetailList(Long purchaseTotalInfoId, int page, int size);

}
